package com.etime.perfectschool.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.perfectschool.pojo.SchoolNews;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SchoolNewsService{
    //查询全部新闻
    Page<SchoolNews> getAllSchoolNews(int current,int size);
    //添加新闻
    int addSchoolNews(SchoolNews schoolNews);
    //删除新闻
    boolean deleteSchoolNews(int newsid);
    //点赞功能
    boolean likeSchoolNews(SchoolNews schoolNews);
    //查询某条新闻
    SchoolNews getSchoolNews(int newsId);
    //修改新闻
    boolean updateSchoolNews(SchoolNews schoolNews);
}
